package org.sfilo.downloader;

import org.sfilo.downloader.http.HttpFrameFileSpider;

public class SpiderFactory
{
	public static FrameFileSpider createSpider(SiteInfoBean site, int startPosition, int length,
			String destFileName) throws Exception
	{
		return new HttpFrameFileSpider(site.getUrl(), startPosition, length, site.getDestFileName(),
				 site.getHeaders());
	}
}
